<extend name="Base/common"/>
<block name="header">
    <include file="Public/_nav"/>
    <link type="text/css" rel="stylesheet" href="__CSS__/course.css"/>
    <script type="text/javascript" src="__JS__/common.js"></script>
</block>

<block name="body">
    <!--登录后显示个人区域-->
     <div class="col-xs-3">  
           
           <include file="Public/sidebar"  />
     </div>
     <!--/登录后显示个人区域-->


     <div class="col-xs-9 content">
     <div class="row">
        <include file="_tab"/>

          <div class="white-box"> 
             <!-- <legend>{$thistitle}</legend>   -->  
             <h3>{$thistitle}</h3>
          <!--班级列表表单start-->                 
          <form class="form-horizontal form-condensed" role="form" method="post" id="classform" name="classform" action="">          
                 <div class="form-group">
                    <label class="col-md-2 control-label required">班 级：</label>
                      <div class="col-md-6">
                         <select name="bj_code" class="form-control"  style="width:210px;"  onChange="this.form.submit()">
                           <option value="{$cur.bj_code}" >{$cur.bj_code}</option> 
                             <volist name="classlist" id="v">
                                <option value="{$v.bj_code}"<if condition="$cur.bj_code eq $v['bj_code']">selected</if>  >{$v.bj_name}</option>            
                             </volist>                          
                        </select>
                      </div> 
                      <input class="btn btn-primary" value="提交"  type="submit" >
                    </div>
             </form>
              <!--班级列表表单end--> 
                 

                    <table class="table table-bordered">
                    <thead>
                    <tr>
                      <th>#ID</th><th>班级</th><th>学号</th><th>姓名</th><th>座位号</th><th>最后登录IP</th>
                      <th>最近登录</th><th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="list" id="v">
                    <tr>
                      <td>{$i}</td><td>{$v.bj_code}</td><td>{$v.st_code}</td>
                      <td><a href="{:U('Admin/user/index',array('nickname'=>$v['uid']))}">{$v.nickname}</a>
                      </td><td>{$v.pc}</td>
					           <td>{$v.last_login_ip|long2ip}</td><td>{$v.last_login_time|time_format}</td>
                      <td><a data-remote="{:U('Course/Teacher/memberEdit',array('uid'=>$v['uid']))} " data-title="编辑学生信息"
                       data-toggle="modal" data-moveable="true">编辑</a>｜
                       <a href="{:U('Course/Teacher/cleanweizhi',array('uid'=>$v['uid']))}">清除位置</a>｜
                       <a href="{:U('Admin/User/initpass', array('uid'=>$v['uid']))}"
                               class="confirm ajax-get">重置密码</a></td>
                      </tr>
                      </volist>               
                    </tbody>
                    </table>
                    

        </div>
       </div>
 </block>